Skip to content

python3Packages.onepassword-sdk: add py.typed for PEP 561 compliance#526222

Open
mahyarmirrashed wants to merge 1 commit into
NixOS:masterfrom
mahyarmirrashed:mahyarmirrashed/add-py-typed-to-onepassword-sdk
Open

python3Packages.onepassword-sdk: add py.typed for PEP 561 compliance#526222
mahyarmirrashed wants to merge 1 commit into
NixOS:masterfrom
mahyarmirrashed:mahyarmirrashed/add-py-typed-to-onepassword-sdk

Conversation

@mahyarmirrashed

Copy link
Copy Markdown
Contributor

Upstream does not ship py.typed, so add it manually in postInstall to
mark the package as typed. This enables type checking for downstream
users using mypy or other type checkers.

Fixes: 1Password/onepassword-sdk-python#220

Things done

@mahyarmirrashed

Copy link
Copy Markdown
Contributor Author

@GaetanLepage Can you review this method for adding the py.typed into the package? It's working locally for my LSP. I've also created the upstream 1Password/onepassword-sdk-python#226 to include it natively.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 6.topic: python Python is a high-level, general-purpose programming language. labels May 31, 2026
@GaetanLepage

Copy link
Copy Markdown
Contributor

I think that could be acceptable, but it would be better to submit a PR upstream adding the file, and then applying the commit using postPatch.

@mahyarmirrashed

Copy link
Copy Markdown
Contributor Author

I think that could be acceptable, but it would be better to submit a PR upstream adding the file, and then applying the commit using postPatch.

Agreed, I just have no timeline on when/if they're going to review/merge that PR. Do we have a convention for internal patch release until new beta/version is available upstream with the merged changes?

@GaetanLepage

Copy link
Copy Markdown
Contributor

I think that could be acceptable, but it would be better to submit a PR upstream adding the file, and then applying the commit using postPatch.

Agreed, I just have no timeline on when/if they're going to review/merge that PR. Do we have a convention for internal patch release until new beta/version is available upstream with the merged changes?

Yes, this is fairly common. You can use fetchpatch while the fix has not made its way to the release we're currently packaging.

@mahyarmirrashed mahyarmirrashed force-pushed the mahyarmirrashed/add-py-typed-to-onepassword-sdk branch from d3a33aa to b57b36e Compare June 22, 2026 22:37
@mahyarmirrashed mahyarmirrashed force-pushed the mahyarmirrashed/add-py-typed-to-onepassword-sdk branch from b57b36e to 7ce39cf Compare June 22, 2026 22:44

@GaetanLepage GaetanLepage left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Jun 22, 2026
@GaetanLepage

Copy link
Copy Markdown
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 526222
Commit: 7ce39cfffbf4f8dcfb5cdfc63ef2a6b77f714e31


x86_64-linux

❌ 2 packages failed to build:
  • python313Packages.onepassword-sdk
  • python314Packages.onepassword-sdk

aarch64-linux

❌ 2 packages failed to build:
  • python313Packages.onepassword-sdk
  • python314Packages.onepassword-sdk

x86_64-darwin

❌ 2 packages failed to build:
  • python313Packages.onepassword-sdk
  • python314Packages.onepassword-sdk

aarch64-darwin

❌ 2 packages failed to build:
  • python313Packages.onepassword-sdk
  • python314Packages.onepassword-sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: Type Stubs

2 participants